{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "2cf61a3a",
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import wfdb\n",
    "import math\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "from scipy import interpolate\n",
    "from scipy import signal\n",
    "import neurokit2 as nk\n",
    "import matplotlib.pyplot as plt\n",
    "from sklearn.preprocessing import MinMaxScaler\n",
    "from sklearn.preprocessing import StandardScaler"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "05762355",
   "metadata": {},
   "outputs": [],
   "source": [
    "# sampling rate: 1000Hz -> resampling rate: 500Hz\n",
    "# segmentation: 2s -> 1000 timestamps\n",
    "# the length of the ECG signal recording of each subject can be different\n",
    "# 15-lead ECGs (12 standard + Frank XYZ leads)\n",
    "# 290 subjects with 9 diagnostic classes (drop n/a class)\n",
    "\n",
    "# root path \n",
    "root_path = 'ptb-diagnostic-ecg-database-1.0.0'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "db41b1d1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": "\"\\nli_sub = []\\nfor sub in os.listdir(root_path):\\n    num_tri = 0\\n    sub_path = os.path.join(root_path, sub)\\n    if os.path.isdir(sub_path):\\n        for tri in os.listdir(sub_path):\\n            if '.dat' in tri:\\n                num_tri += 1\\n        if num_tri >= 2:\\n            li_sub.append(sub_path)\\n\\nprint(len(li_sub))\\n\\n\""
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# select the subject with multiple trials\n",
    "# less than half of the patients, so we do not drop any patient.\n",
    "\"\"\"\n",
    "li_sub = []\n",
    "for sub in os.listdir(root_path):\n",
    "    num_tri = 0\n",
    "    sub_path = os.path.join(root_path, sub)\n",
    "    if os.path.isdir(sub_path):\n",
    "        for tri in os.listdir(sub_path):\n",
    "            if '.dat' in tri:\n",
    "                num_tri += 1\n",
    "        if num_tri >= 2:\n",
    "            li_sub.append(sub_path)\n",
    "\n",
    "print(len(li_sub))\n",
    "\n",
    "\"\"\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "ecacc923",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "200\n"
     ]
    },
    {
     "data": {
      "text/plain": "['ptb-diagnostic-ecg-database-1.0.0\\\\patient001',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient002',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient003',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient004',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient005',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient006',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient007',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient008',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient009',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient010',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient011',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient012',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient013',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient014',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient015',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient016',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient017',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient018',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient019',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient020',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient021',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient022',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient023',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient024',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient025',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient026',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient027',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient028',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient029',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient030',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient031',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient032',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient033',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient034',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient035',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient036',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient037',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient038',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient039',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient040',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient041',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient042',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient043',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient044',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient045',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient046',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient047',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient048',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient049',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient050',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient051',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient052',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient053',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient054',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient055',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient056',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient057',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient058',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient059',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient060',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient061',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient062',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient063',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient064',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient065',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient066',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient067',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient068',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient069',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient070',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient071',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient072',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient073',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient074',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient075',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient076',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient077',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient078',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient079',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient080',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient081',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient082',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient083',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient084',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient085',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient086',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient087',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient088',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient089',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient090',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient091',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient092',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient093',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient094',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient095',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient096',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient097',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient098',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient099',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient100',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient101',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient102',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient103',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient104',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient105',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient108',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient111',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient116',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient117',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient120',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient121',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient122',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient128',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient131',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient135',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient138',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient139',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient140',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient141',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient142',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient145',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient148',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient149',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient150',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient152',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient155',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient156',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient158',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient160',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient163',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient165',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient166',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient169',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient170',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient172',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient173',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient174',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient180',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient182',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient183',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient184',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient185',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient189',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient193',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient195',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient197',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient198',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient205',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient207',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient211',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient214',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient223',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient226',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient229',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient230',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient231',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient233',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient234',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient235',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient236',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient237',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient238',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient239',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient240',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient241',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient242',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient243',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient244',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient245',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient246',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient247',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient248',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient251',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient252',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient255',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient259',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient260',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient261',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient263',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient264',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient265',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient266',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient267',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient268',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient270',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient273',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient274',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient276',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient277',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient279',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient280',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient282',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient283',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient284',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient287',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient290',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient291',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient292',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient293',\n 'ptb-diagnostic-ecg-database-1.0.0\\\\patient294']"
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# only select the patients with myocardial infarction disease label\n",
    "li_slc_sub = []\n",
    "for sub in os.listdir(root_path):\n",
    "    sub_path = os.path.join(root_path, sub)\n",
    "    if os.path.isdir(sub_path):\n",
    "        for tri in os.listdir(sub_path):\n",
    "            if '.dat' in tri:\n",
    "                tri_path = os.path.join(sub_path, tri)\n",
    "                label = wfdb.rdsamp(record_name=tri_path[:-4])[1]['comments'][4].split(':')[-1].strip()\n",
    "                if (label == 'Myocardial infarction')|(label == 'Healthy control'):\n",
    "                    li_slc_sub.append(sub_path)\n",
    "                    break\n",
    "\n",
    "print(len(li_slc_sub))\n",
    "li_slc_sub"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "6c6ad2ba",
   "metadata": {},
   "outputs": [],
   "source": [
    "# resampling to 250Hz\n",
    "def resampling(array, freq, kind='linear'):\n",
    "    t = np.linspace(1, len(array), len(array))\n",
    "    f = interpolate.interp1d(t, array, kind=kind)\n",
    "    t_new = np.linspace(1, len(array), int(len(array)/freq * 250))\n",
    "    new_array = f(t_new)\n",
    "    return new_array\n",
    "\n",
    "# standard normalization \n",
    "def normalize(data):\n",
    "    scaler = StandardScaler()\n",
    "    data_norm = scaler.fit_transform(data)\n",
    "    return data_norm\n",
    "    \n",
    "    \"\"\"\n",
    "    scaler = MinMaxScaler(feature_range=(0, 1))\n",
    "    norm = scaler.fit_transform(df.values)\n",
    "    df_norm = pd.DataFrame(norm)\n",
    "    return df_norm\n",
    "    \n",
    "    \"\"\"\n",
    "    \n",
    "\n",
    "\"\"\"\n",
    "# segmentation with no overlapping (1000 timestamps)\n",
    "# start from the beginning\n",
    "def segment(df, window_size=500*10):\n",
    "    res = []\n",
    "    index = 0\n",
    "    while index <= df.shape[0] - window_size:\n",
    "        res.append(df.iloc[index: index+window_size, :])\n",
    "        index += window_size\n",
    "    return res\n",
    "    \n",
    "\"\"\"\n",
    "\n",
    "\n",
    "# function of R peaks of a resampled trial\n",
    "def R_Peaks(ecg_data):\n",
    "    # get R Peak positions\n",
    "    pos = []\n",
    "    # get R Peak intervals\n",
    "    trial_interval = []\n",
    "    for ch in range(ecg_data.shape[1]):\n",
    "        cleaned_ecg = nk.ecg_clean(ecg_data[:, ch], sampling_rate=250, method='neurokit')\n",
    "        signals, info = nk.ecg_peaks(cleaned_ecg, sampling_rate=250, correct_artifacts=False)\n",
    "        peaks = signals[signals['ECG_R_Peaks']==1].index.to_list()\n",
    "        pos.append(peaks)\n",
    "        channel_interval = []\n",
    "        for i in range(len(peaks)-1):\n",
    "            channel_interval.append(peaks[i+1] - peaks[i])\n",
    "        trial_interval.append(channel_interval)\n",
    "        \n",
    "    df_peaks = pd.DataFrame(pos) # [C=15, num of the R-Peaks of a channel]\n",
    "    df = pd.DataFrame(trial_interval).T\n",
    "    med = df.median()\n",
    "    return df, med, df_peaks"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "07470fa1",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[]\n"
     ]
    },
    {
     "data": {
      "text/plain": "      0      1      2      3      4       5       6      7      8        9    \\\n0   183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n1   183.0  177.0  190.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n2   184.0  174.0  188.0  191.0  207.0   184.0   200.0  157.0  158.0    145.0   \n3   183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n4   183.0  174.0  188.0  191.0  208.0   182.0   185.0  158.0  159.0    145.0   \n5   185.0  174.0  188.0  191.0  208.0   182.0   184.0  157.0  158.0    145.0   \n6   183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.5    146.0   \n7   183.0  174.0  188.0  191.0  207.5  1443.0  1553.0  162.0  163.0   1326.5   \n8   183.0  174.0  188.0  191.0  208.0   182.0   185.0  519.0  978.0   3074.0   \n9   183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0  17066.0   \n10  183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    146.0   \n11  183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n12  183.0  174.0  188.0  191.0  207.0   182.0   185.0  157.0  158.0    145.0   \n13  183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n14  183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n\n    ...    438    439    440    441    442    443    444    445    446    447  \n0   ...  211.0  160.0  166.0  259.5  179.0  142.0  140.0  203.0  209.0  201.0  \n1   ...  211.0  160.0  166.0  257.5  179.0  141.0  140.0  202.0  209.0  201.0  \n2   ...  211.0  160.0  166.0  242.5  179.0  141.0  140.0  202.0  209.0  201.0  \n3   ...  211.0  160.0  166.0  259.0  179.0  141.0  140.0  202.5  209.0  201.0  \n4   ...  211.0  160.0  166.0  259.5  179.0  142.0  140.0  203.0  209.0  201.0  \n5   ...  211.0  159.5  165.0  259.5  179.0  141.0  140.0  202.0  207.0  201.0  \n6   ...  211.0  160.0  166.0  180.0  178.5  141.0  140.0  203.0  209.0  201.0  \n7   ...  211.0  160.0  166.0  259.5  179.0  142.0  140.0  197.0  209.0  201.0  \n8   ...  211.0  160.0  166.0  259.5  179.0  141.0  140.0  203.0  210.0  201.0  \n9   ...  211.0  160.0  166.0  259.5  178.5  142.0  140.0  202.0  209.0  201.0  \n10  ...  211.0  160.0  166.0  259.0  179.0  141.0  140.0  202.0  209.0  201.0  \n11  ...  211.0  160.0  166.0  259.0  179.0  141.0  140.0  203.0  209.0  201.0  \n12  ...  211.0  160.0  166.0  260.0  179.0  141.0  140.0  203.0  209.0  201.0  \n13  ...  211.0  160.0  165.0  258.0  179.0  141.0  140.0  202.0  207.0  201.0  \n14  ...  210.0  160.0  166.0  260.0  179.0  141.0  140.0  203.0  209.0  201.0  \n\n[15 rows x 448 columns]",
      "text/html": "<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n\n    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n\n    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n<table border=\"1\" class=\"dataframe\">\n  <thead>\n    <tr style=\"text-align: right;\">\n      <th></th>\n      <th>0</th>\n      <th>1</th>\n      <th>2</th>\n      <th>3</th>\n      <th>4</th>\n      <th>5</th>\n      <th>6</th>\n      <th>7</th>\n      <th>8</th>\n      <th>9</th>\n      <th>...</th>\n      <th>438</th>\n      <th>439</th>\n      <th>440</th>\n      <th>441</th>\n      <th>442</th>\n      <th>443</th>\n      <th>444</th>\n      <th>445</th>\n      <th>446</th>\n      <th>447</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <th>0</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>142.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>1</th>\n      <td>183.0</td>\n      <td>177.0</td>\n      <td>190.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>257.5</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>2</th>\n      <td>184.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>207.0</td>\n      <td>184.0</td>\n      <td>200.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>242.5</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>3</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.5</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>4</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>158.0</td>\n      <td>159.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>142.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>5</th>\n      <td>185.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>184.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>159.5</td>\n      <td>165.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>207.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>6</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.5</td>\n      <td>146.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>180.0</td>\n      <td>178.5</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>7</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>207.5</td>\n      <td>1443.0</td>\n      <td>1553.0</td>\n      <td>162.0</td>\n      <td>163.0</td>\n      <td>1326.5</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>142.0</td>\n      <td>140.0</td>\n      <td>197.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>8</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>519.0</td>\n      <td>978.0</td>\n      <td>3074.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>210.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>9</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>17066.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>178.5</td>\n      <td>142.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>10</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>146.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>11</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>12</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>207.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>260.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>13</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>165.0</td>\n      <td>258.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>207.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>14</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>210.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>260.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n  </tbody>\n</table>\n<p>15 rows × 448 columns</p>\n</div>"
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# get median R-Peak intervals for all trials\n",
    "med_intervals = []\n",
    "li_abnormal_trial = []\n",
    "for sub_path in li_slc_sub:\n",
    "    for tri in os.listdir(sub_path):\n",
    "        if '.dat' in tri:\n",
    "            tri_path = os.path.join(sub_path, tri)\n",
    "            ecg_data = wfdb.rdsamp(record_name=tri_path[:-4])[0]\n",
    "            trial = []\n",
    "            for ch in range(ecg_data.shape[1]):\n",
    "                data = resampling(ecg_data[:,ch], freq=1000, kind='linear')\n",
    "                trial.append(data)\n",
    "            trial = np.array(trial).T\n",
    "            trial_norm = normalize(trial)\n",
    "            try:\n",
    "                _, med, _ = R_Peaks(trial_norm)\n",
    "                med_intervals.append(med.to_list())\n",
    "            except IndexError:\n",
    "                print('The trial is invalid with trial path {}'.format(tri_path))\n",
    "                li_abnormal_trial.append(tri_path)\n",
    "                pass\n",
    "            \n",
    "li_abnormal_trial = list(set(li_abnormal_trial))\n",
    "print(li_abnormal_trial) # no abnormal trial\n",
    "df_med_intervals = pd.DataFrame(med_intervals).T\n",
    "df_med_intervals"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "4860f468",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(438,)\n",
      "295.0\n"
     ]
    }
   ],
   "source": [
    "# set max_duration\n",
    "all_med = df_med_intervals.median()\n",
    "print(all_med[all_med<=300].shape)\n",
    "print(all_med[all_med<=300].max())\n",
    "max_duration = 300"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "9e25044b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient023\\s0085lre.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient023\\s0103lre.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient028\\s0108lre.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient085\\s0297lre.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient085\\s0298lre.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient273\\s0511_re.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient277\\s0527_re.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient279\\s0532_re.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient279\\s0533_re.dat\n",
      "The trial is an outlier with trial path ptb-diagnostic-ecg-database-1.0.0\\patient279\\s0534_re.dat\n",
      "['ptb-diagnostic-ecg-database-1.0.0\\\\patient085\\\\s0297lre.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient023\\\\s0085lre.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient023\\\\s0103lre.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient279\\\\s0532_re.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient279\\\\s0533_re.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient028\\\\s0108lre.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient277\\\\s0527_re.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient273\\\\s0511_re.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient085\\\\s0298lre.dat', 'ptb-diagnostic-ecg-database-1.0.0\\\\patient279\\\\s0534_re.dat']\n"
     ]
    },
    {
     "data": {
      "text/plain": "      0      1      2      3      4       5       6      7      8        9    \\\n0   183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n1   183.0  177.0  190.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n2   184.0  174.0  188.0  191.0  207.0   184.0   200.0  157.0  158.0    145.0   \n3   183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n4   183.0  174.0  188.0  191.0  208.0   182.0   185.0  158.0  159.0    145.0   \n5   185.0  174.0  188.0  191.0  208.0   182.0   184.0  157.0  158.0    145.0   \n6   183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.5    146.0   \n7   183.0  174.0  188.0  191.0  207.5  1443.0  1553.0  162.0  163.0   1326.5   \n8   183.0  174.0  188.0  191.0  208.0   182.0   185.0  519.0  978.0   3074.0   \n9   183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0  17066.0   \n10  183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    146.0   \n11  183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n12  183.0  174.0  188.0  191.0  207.0   182.0   185.0  157.0  158.0    145.0   \n13  183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n14  183.0  174.0  188.0  191.0  208.0   182.0   185.0  157.0  158.0    145.0   \n\n    ...    428    429    430    431    432    433    434    435    436    437  \n0   ...  211.0  160.0  166.0  259.5  179.0  142.0  140.0  203.0  209.0  201.0  \n1   ...  211.0  160.0  166.0  257.5  179.0  141.0  140.0  202.0  209.0  201.0  \n2   ...  211.0  160.0  166.0  242.5  179.0  141.0  140.0  202.0  209.0  201.0  \n3   ...  211.0  160.0  166.0  259.0  179.0  141.0  140.0  202.5  209.0  201.0  \n4   ...  211.0  160.0  166.0  259.5  179.0  142.0  140.0  203.0  209.0  201.0  \n5   ...  211.0  159.5  165.0  259.5  179.0  141.0  140.0  202.0  207.0  201.0  \n6   ...  211.0  160.0  166.0  180.0  178.5  141.0  140.0  203.0  209.0  201.0  \n7   ...  211.0  160.0  166.0  259.5  179.0  142.0  140.0  197.0  209.0  201.0  \n8   ...  211.0  160.0  166.0  259.5  179.0  141.0  140.0  203.0  210.0  201.0  \n9   ...  211.0  160.0  166.0  259.5  178.5  142.0  140.0  202.0  209.0  201.0  \n10  ...  211.0  160.0  166.0  259.0  179.0  141.0  140.0  202.0  209.0  201.0  \n11  ...  211.0  160.0  166.0  259.0  179.0  141.0  140.0  203.0  209.0  201.0  \n12  ...  211.0  160.0  166.0  260.0  179.0  141.0  140.0  203.0  209.0  201.0  \n13  ...  211.0  160.0  165.0  258.0  179.0  141.0  140.0  202.0  207.0  201.0  \n14  ...  210.0  160.0  166.0  260.0  179.0  141.0  140.0  203.0  209.0  201.0  \n\n[15 rows x 438 columns]",
      "text/html": "<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n\n    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n\n    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n<table border=\"1\" class=\"dataframe\">\n  <thead>\n    <tr style=\"text-align: right;\">\n      <th></th>\n      <th>0</th>\n      <th>1</th>\n      <th>2</th>\n      <th>3</th>\n      <th>4</th>\n      <th>5</th>\n      <th>6</th>\n      <th>7</th>\n      <th>8</th>\n      <th>9</th>\n      <th>...</th>\n      <th>428</th>\n      <th>429</th>\n      <th>430</th>\n      <th>431</th>\n      <th>432</th>\n      <th>433</th>\n      <th>434</th>\n      <th>435</th>\n      <th>436</th>\n      <th>437</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <th>0</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>142.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>1</th>\n      <td>183.0</td>\n      <td>177.0</td>\n      <td>190.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>257.5</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>2</th>\n      <td>184.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>207.0</td>\n      <td>184.0</td>\n      <td>200.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>242.5</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>3</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.5</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>4</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>158.0</td>\n      <td>159.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>142.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>5</th>\n      <td>185.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>184.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>159.5</td>\n      <td>165.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>207.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>6</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.5</td>\n      <td>146.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>180.0</td>\n      <td>178.5</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>7</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>207.5</td>\n      <td>1443.0</td>\n      <td>1553.0</td>\n      <td>162.0</td>\n      <td>163.0</td>\n      <td>1326.5</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>142.0</td>\n      <td>140.0</td>\n      <td>197.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>8</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>519.0</td>\n      <td>978.0</td>\n      <td>3074.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>210.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>9</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>17066.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.5</td>\n      <td>178.5</td>\n      <td>142.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>10</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>146.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>11</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>259.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>12</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>207.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>260.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>13</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>211.0</td>\n      <td>160.0</td>\n      <td>165.0</td>\n      <td>258.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>202.0</td>\n      <td>207.0</td>\n      <td>201.0</td>\n    </tr>\n    <tr>\n      <th>14</th>\n      <td>183.0</td>\n      <td>174.0</td>\n      <td>188.0</td>\n      <td>191.0</td>\n      <td>208.0</td>\n      <td>182.0</td>\n      <td>185.0</td>\n      <td>157.0</td>\n      <td>158.0</td>\n      <td>145.0</td>\n      <td>...</td>\n      <td>210.0</td>\n      <td>160.0</td>\n      <td>166.0</td>\n      <td>260.0</td>\n      <td>179.0</td>\n      <td>141.0</td>\n      <td>140.0</td>\n      <td>203.0</td>\n      <td>209.0</td>\n      <td>201.0</td>\n    </tr>\n  </tbody>\n</table>\n<p>15 rows × 438 columns</p>\n</div>"
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# update li_abnormal_trial (invalid + outlier)\n",
    "med_intervals = []\n",
    "li_abnormal_trial = []\n",
    "for sub_path in li_slc_sub:\n",
    "    for tri in os.listdir(sub_path):\n",
    "        if '.dat' in tri:\n",
    "            tri_path = os.path.join(sub_path, tri)\n",
    "            ecg_data = wfdb.rdsamp(record_name=tri_path[:-4])[0]\n",
    "            trial = []\n",
    "            for ch in range(ecg_data.shape[1]):\n",
    "                data = resampling(ecg_data[:,ch], freq=1000, kind='linear')\n",
    "                trial.append(data)\n",
    "            trial = np.array(trial).T\n",
    "            trial_norm = normalize(trial)\n",
    "            try:\n",
    "                _, med, _ = R_Peaks(trial_norm)\n",
    "                if med.median() <= max_duration: \n",
    "                    med_intervals.append(med.to_list())\n",
    "                else:\n",
    "                    print('The trial is an outlier with trial path {}'.format(tri_path))\n",
    "                    li_abnormal_trial.append(tri_path)\n",
    "            except IndexError:\n",
    "                print('The trial is invalid with trial path {}'.format(tri_path))\n",
    "                li_abnormal_trial.append(tri_path)\n",
    "                pass\n",
    "            \n",
    "li_abnormal_trial = list(set(li_abnormal_trial))\n",
    "print(li_abnormal_trial) # no abnormal trial\n",
    "df_med_intervals = pd.DataFrame(med_intervals).T\n",
    "df_med_intervals"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "4dcab997",
   "metadata": {},
   "outputs": [],
   "source": [
    "# split resampled trial to sample level(single heartbeat)\n",
    "def sample(ecg_data, max_duration=300):\n",
    "    samples = []\n",
    "    _, med, df_peaks = R_Peaks(ecg_data)\n",
    "    trial_med = med.median()\n",
    "    for i in range(df_peaks.shape[1]):\n",
    "        RP_pos = df_peaks.iloc[:, i].median()\n",
    "        ini_beat = ecg_data[max(0,int(RP_pos)-int(trial_med/2)):min(int(RP_pos)+int(trial_med/2),ecg_data.shape[0]), :]\n",
    "        left_zero_num = int((int(max_duration)-ini_beat.shape[0])/2)\n",
    "        padding_left = np.zeros([left_zero_num, ecg_data.shape[1]])\n",
    "        padding_right = np.zeros([int(max_duration)-left_zero_num-ini_beat.shape[0], ecg_data.shape[1]])\n",
    "        beat = np.concatenate([padding_left, ini_beat, padding_right], axis=0)\n",
    "        samples.append(beat)\n",
    "    return samples \n",
    "\n",
    "\n",
    "# concat samples to segmentations\n",
    "def sample2seg(samples, seg_size=10):\n",
    "    segmentations = []\n",
    "    index = 0\n",
    "    while index <= len(samples)-seg_size:\n",
    "        beat = samples[index]\n",
    "        for i in range(index+1, index+seg_size):\n",
    "            beat = np.vstack((beat, samples[i]))\n",
    "        segmentations.append(beat)\n",
    "        index += seg_size\n",
    "    return segmentations"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "4564029d",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(36, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(30, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(84, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(46, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(59, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(36, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(4, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(48, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(51, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(32, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(48, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(45, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(49, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(34, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(55, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(44, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(46, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(34, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(48, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(34, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(25, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(72, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(39, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(29, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(56, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(29, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(50, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(51, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(65, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(66, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(61, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(70, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(67, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(42, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(32, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(38, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(46, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(57, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(65, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(62, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(45, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(58, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(64, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(70, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(40, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(59, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(61, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(52, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(49, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(60, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(20, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(18, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(17, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(58, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(40, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(55, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(17, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(46, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(71, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(50, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(67, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(56, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(69, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(71, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(54, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(65, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(62, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(55, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(57, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(57, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(53, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(27, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(46, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(56, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(50, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(44, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(63, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(55, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(72, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(79, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(52, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(59, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(50, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(68, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(57, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(56, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(62, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(17, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(10, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(11, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(5, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(5, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(11, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(25, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(4, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(19, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(5, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(6, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(5, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(4, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(10, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(4, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(27, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(4, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(5, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(22, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(11, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(23, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(18, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(39, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(94, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(4, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(23, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(24, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(21, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(19, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(28, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(23, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(11, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(58, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(11, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(36, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(20, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(18, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(27, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(11, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(45, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(11, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(21, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(13, 3000, 15)\n",
      "\n",
      "\n",
      "The subject is None after preprocessing with the path ptb-diagnostic-ecg-database-1.0.0\\patient273\\s0511_re.dat\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(11, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "The subject is None after preprocessing with the path ptb-diagnostic-ecg-database-1.0.0\\patient277\\s0527_re.dat\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(19, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(12, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(10, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(44, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(36, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(15, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(16, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(42, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(33, 3000, 15)\n",
      "\n",
      "\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(3000, 15)\n",
      "(14, 3000, 15)\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "# main\n",
    "feature_path = './Feature'\n",
    "if not os.path.exists(feature_path):\n",
    "    os.mkdir(feature_path)\n",
    "\n",
    "dict_label = {}\n",
    "sub_id = 1\n",
    "for sub_path in li_slc_sub:\n",
    "    li_sub_segs = []\n",
    "    for tri in os.listdir(sub_path):\n",
    "        if 'dat' in tri:\n",
    "            tri_path = os.path.join(sub_path, tri)\n",
    "            if tri_path not in li_abnormal_trial:\n",
    "                label = wfdb.rdsamp(record_name=tri_path[:-4])[1]['comments'][4].split(':')[-1].strip() # label\n",
    "                if label == 'Myocardial infarction':\n",
    "                    dict_label['{}'.format(sub_id)] = 1\n",
    "                if label == 'Healthy control':\n",
    "                    dict_label['{}'.format(sub_id)] = 0\n",
    "                ecg_data = wfdb.rdsamp(record_name=tri_path[:-4])[0] # data\n",
    "                trial = []\n",
    "                for ch in range(ecg_data.shape[1]):\n",
    "                    data = resampling(ecg_data[:,ch], freq=1000, kind='linear')\n",
    "                    trial.append(data)\n",
    "                trial = np.array(trial).T\n",
    "                trial_norm = normalize(trial)\n",
    "                samples = sample(trial_norm, max_duration=300)\n",
    "                segmentations = sample2seg(samples, seg_size=10) # all segmentations of a trial\n",
    "                for seg in segmentations:\n",
    "                    li_sub_segs.append(seg)\n",
    "                    print(seg.shape)\n",
    "                    \n",
    "    if li_sub_segs != list(): # Not None list\n",
    "        array_sub = np.array(li_sub_segs)\n",
    "        print(array_sub.shape)\n",
    "        print('\\n')\n",
    "        np.save(feature_path + '/feature_{:03d}.npy'.format(sub_id), array_sub)\n",
    "        sub_id += 1\n",
    "    else:\n",
    "        print('The subject is None after preprocessing with the path {}'.format(tri_path))              "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "aa3cd551",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": "(21, 3000, 15)"
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# test feature_X_Y.npy\n",
    "np.load('./Feature/feature_183.npy').shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "39079a71",
   "metadata": {},
   "outputs": [],
   "source": [
    "# label.npy\n",
    "label_path = './Label'\n",
    "if not os.path.exists(label_path):\n",
    "    os.mkdir(label_path)\n",
    "\n",
    "df_label = pd.DataFrame([dict_label]).T\n",
    "df_label = df_label.reset_index().astype('int64')\n",
    "labels = df_label[[0, 'index']].values\n",
    "np.save(label_path + '/label.npy', labels)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "a29d0039",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": "array([[  1,   1],\n       [  1,   2],\n       [  1,   3],\n       [  1,   4],\n       [  1,   5],\n       [  1,   6],\n       [  1,   7],\n       [  1,   8],\n       [  1,   9],\n       [  1,  10],\n       [  1,  11],\n       [  1,  12],\n       [  1,  13],\n       [  1,  14],\n       [  1,  15],\n       [  1,  16],\n       [  1,  17],\n       [  1,  18],\n       [  1,  19],\n       [  1,  20],\n       [  1,  21],\n       [  1,  22],\n       [  1,  23],\n       [  1,  24],\n       [  1,  25],\n       [  1,  26],\n       [  1,  27],\n       [  1,  28],\n       [  1,  29],\n       [  1,  30],\n       [  1,  31],\n       [  1,  32],\n       [  1,  33],\n       [  1,  34],\n       [  1,  35],\n       [  1,  36],\n       [  1,  37],\n       [  1,  38],\n       [  1,  39],\n       [  1,  40],\n       [  1,  41],\n       [  1,  42],\n       [  1,  43],\n       [  1,  44],\n       [  1,  45],\n       [  1,  46],\n       [  1,  47],\n       [  1,  48],\n       [  1,  49],\n       [  1,  50],\n       [  1,  51],\n       [  1,  52],\n       [  1,  53],\n       [  1,  54],\n       [  1,  55],\n       [  1,  56],\n       [  1,  57],\n       [  1,  58],\n       [  1,  59],\n       [  1,  60],\n       [  1,  61],\n       [  1,  62],\n       [  1,  63],\n       [  1,  64],\n       [  1,  65],\n       [  1,  66],\n       [  1,  67],\n       [  1,  68],\n       [  1,  69],\n       [  1,  70],\n       [  1,  71],\n       [  1,  72],\n       [  1,  73],\n       [  1,  74],\n       [  1,  75],\n       [  1,  76],\n       [  1,  77],\n       [  1,  78],\n       [  1,  79],\n       [  1,  80],\n       [  1,  81],\n       [  1,  82],\n       [  1,  83],\n       [  1,  84],\n       [  1,  85],\n       [  1,  86],\n       [  1,  87],\n       [  1,  88],\n       [  1,  89],\n       [  1,  90],\n       [  1,  91],\n       [  1,  92],\n       [  1,  93],\n       [  1,  94],\n       [  1,  95],\n       [  1,  96],\n       [  1,  97],\n       [  1,  98],\n       [  1,  99],\n       [  1, 100],\n       [  1, 101],\n       [  1, 102],\n       [  1, 103],\n       [  0, 104],\n       [  0, 105],\n       [  1, 106],\n       [  1, 107],\n       [  0, 108],\n       [  0, 109],\n       [  1, 110],\n       [  0, 111],\n       [  0, 112],\n       [  1, 113],\n       [  0, 114],\n       [  1, 115],\n       [  1, 116],\n       [  1, 117],\n       [  1, 118],\n       [  1, 119],\n       [  1, 120],\n       [  1, 121],\n       [  1, 122],\n       [  1, 123],\n       [  0, 124],\n       [  1, 125],\n       [  0, 126],\n       [  0, 127],\n       [  1, 128],\n       [  1, 129],\n       [  1, 130],\n       [  0, 131],\n       [  0, 132],\n       [  0, 133],\n       [  0, 134],\n       [  0, 135],\n       [  0, 136],\n       [  0, 137],\n       [  0, 138],\n       [  0, 139],\n       [  1, 140],\n       [  0, 141],\n       [  0, 142],\n       [  1, 143],\n       [  1, 144],\n       [  1, 145],\n       [  1, 146],\n       [  0, 147],\n       [  1, 148],\n       [  1, 149],\n       [  1, 150],\n       [  0, 151],\n       [  1, 152],\n       [  1, 153],\n       [  0, 154],\n       [  1, 155],\n       [  1, 156],\n       [  0, 157],\n       [  0, 158],\n       [  0, 159],\n       [  0, 160],\n       [  0, 161],\n       [  0, 162],\n       [  0, 163],\n       [  0, 164],\n       [  0, 165],\n       [  0, 166],\n       [  0, 167],\n       [  0, 168],\n       [  0, 169],\n       [  0, 170],\n       [  0, 171],\n       [  0, 172],\n       [  0, 173],\n       [  0, 174],\n       [  0, 175],\n       [  1, 176],\n       [  0, 177],\n       [  1, 178],\n       [  0, 179],\n       [  0, 180],\n       [  1, 181],\n       [  0, 182],\n       [  0, 183],\n       [  1, 184],\n       [  1, 185],\n       [  1, 186],\n       [  0, 187],\n       [  0, 188],\n       [  1, 189],\n       [  1, 190],\n       [  1, 191],\n       [  0, 192],\n       [  1, 193],\n       [  1, 194],\n       [  1, 195],\n       [  1, 196],\n       [  1, 197],\n       [  1, 198]], dtype=int64)"
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# test label.npy\n",
    "np.load('./Label/label.npy')"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
